package com.wt.chat.mapper;

import com.wt.chat.entity.KefuGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface KefuGroupMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(KefuGroup record);

    int insertSelective(KefuGroup record);

    KefuGroup selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(KefuGroup record);

    int updateByPrimaryKey(KefuGroup record);

	/**
	 * 根据groupId获取可以处理该分组的所有客服的id
	 * @param groupId
	 * @return
	 */
	List<String> findByGroupId(@Param("groupId") Integer groupId);
}